<template>
  <div class="tab-container">

    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane label="基1表填写" name="first"><createBaseInfo1 :is-edit="true" /></el-tab-pane>
      <el-tab-pane label="基2表填写" name="second"><createBaseInfo2 :is-edit="true" /></el-tab-pane>
      <el-tab-pane label="基3表填写" name="third"><createBaseInfo3 :is-edit="true" /></el-tab-pane>
      <el-tab-pane label="基4表填写" name="four"><createBaseInfo4 :is-edit="true" /></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import createBaseInfo1 from './components/create-base-info-1.vue'
import createBaseInfo2 from './components/create-base-info-2.vue'
import createBaseInfo3 from './components/create-base-info-3.vue'
import createBaseInfo4 from './components/create-base-info-4.vue'

export default {
  name: 'Tab',
  components: { createBaseInfo1, createBaseInfo2, createBaseInfo3, createBaseInfo4 },
  data() {
    return {
      activeName: 'four',
      tabMapOptions: [
        { label: '基1表填写', key: 'CN' },
        { label: '基2表填写', key: 'US' },
        { label: '基3表填写', key: 'JP' },
        { label: '基4表填写', key: 'EU' }
      ]
    }
  },
  watch: {

  },
  created() {

  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    }
  }
}
</script>

<style scoped>
  .tab-container {
    margin: 30px;
  }
</style>
